package com.github.murzagalin.evaluator.ast

internal class BitAstEvaluator {

    fun evaluate(expression: Expression, values: Map<String, Any> = emptyMap()): Int {

        val baseEvaluator = AstEvaluator(values)

        val evaluated = baseEvaluator.evaluate(expression)

        require(evaluated is Int)

        return evaluated
    }

}